onload=function(){
    var vm1 = new Vue({
        el:'#part1',
        data:{
            part1Type:'com1'
        },
        
        components:{
            'com1':{
                template:'#part1temp1',
                     },
            'com2':{
                template:'#part1temp2'
            },
            'com3':{
                template:'#part1temp3',
        
            },
            'com4':{
                template:'#part1temp4',
              
            }
        }
       
    })
    var vm2 = new Vue({
        el:'#part2',
        data:{
            part2Type:'com1'
        },
        
        components:{
            'com1':{
                template:'#part2temp1',
                     },
            'com2':{
                template:'#part2temp2'
            },
            'com3':{
                template:'#part2temp3',
        
            },
            'com4':{
                template:'#part2temp4',
              
            }
        }
       
    })
    $(".m_left>ul>li").on("click",function(){
        $(".m_left li i").attr("class","fa fa-arrow-right")
        $(".m_left>ul>ul").hide()
        $(this).children("i").attr("class","fa fa-arrow-down")
        $(this).next().show()
    })
    $(".m_erwma,.phone").on("click",function(){
        location.href="../../home/html/index.html";
    })
    $(".film,#film").on("click",function(){
        location.href="../../film/html/index.html";
    })
    $(".take-outfood,#food").on("click",function(){
        location.href="../../take-out food/html/index.html";
    })
    $(".business-center").on("click",function(){
        location.href="../../business-center/index.html";
    })
    $(".business,.pic4").on("click",function(){
        location.href="../../business-center/index.html";
    })
    $('.part-top ul li').on('mouseover',function(){
        $(this).parent().find('.active').removeClass('active')
        $(this).find('.jiantou').addClass('active')
         
    }) 
  
    $(".shadow").on({
        mouseover:function(){
            $(this).attr("style","box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.1)")
        },
        mouseleave:function(){
            $(this).attr("style","box-shadow:0")
        }
    })
    
}